package com.yuyue.springFramework.note11.entity.code;

import org.springframework.context.ApplicationEvent;

/**
 * 创建事件类，继承Spring的事件抽象类
 */
public class OrderCreateEvent extends ApplicationEvent {
    //订单编号
    private String orderId;

    //构造方法
    public OrderCreateEvent(Object source, String orderId) {
        super(source);
        this.orderId = orderId;
    }

    //set、get方法
    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }
}
